<?php
/**
 * vbs中文
 */
class Tool_Vbs
{
    static function encode($obj)
    {
        return vbs_encode($obj);
    }
	
    static function decode($str)
    {
        $ret = vbs_decode($str , &$used);
        if ($ret == NULL && $used == 0)
        {
            return false;
        }
        return $ret;
    }

    static function blob($str)
    {
        return vbs_blob($str);
    }
}
?>